package com.cykj.faceledtv.entity;


/**
 * netty tcp 接收数据实体类
 *
 * @author jzh
 * @date 2018/11/06 14:37
 */
public class NettyReceiverModel {
    /**
     * 原始数据
     */
    private byte[] data;
    /**
     * 是否是心跳包
     */
    private boolean isHeart;
    /**
     * json数据
     */
    private String strData;

    public String getStrData() {
        return strData;
    }

    public void setStrData(String strData) {
        this.strData = strData;
    }

    public NettyReceiverModel() {

    }

    public NettyReceiverModel(String strData) {
        this.strData = strData;
    }


    public boolean isHeart() {
        return isHeart;
    }

    public void setIsHeart(boolean isHeart) {
        this.isHeart = isHeart;
    }


    public NettyReceiverModel(boolean isHeart) {
        this.isHeart = isHeart;
    }

    public NettyReceiverModel(byte[] data) {
        this.data = data;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

}
